#ifndef CoordinateUtil_h__
#define CoordinateUtil_h__

#include "cocos2d.h"
using namespace cocos2d;

class CoordinateUtil
{

public:
	static CCPoint ccp_lf(CCNode* node, float x, float y)
	{
		CCSize size = node->getContentSize();
		CCPoint point;
		point.x = x + size.width / 2;
		point.y = 320 - (y + size.height / 2);
		return point;
	}
};
#define cult(node, x, y) CoordinateUtil::ccp_lf(node, x, y)

#endif // CoordinateUtil_h__


